package com.kaishengit.dao;

import com.kaishengit.entity.OrderItem;
import com.kaishengit.util.DBHelp;

public class OrderItemDao {

	private DBHelp<OrderItem> db = new DBHelp<OrderItem>();
	
	public void save(OrderItem item) {
		String sql = "INSERT INTO t_orderitem(orderid,prodid,num,total) values(?,?,?,?)";
		db.executeSQL(sql, item.getOrderid(),item.getProdid(),item.getNum(),item.getTotal());
	}
}
